﻿using System;
using BLL;

public partial class ANTProductAssemble_ViewAssemble_AssembleDetailViewbySN : System.Web.UI.Page
{
    TAssembleDetail amd;
    TAssembleDetails amds;

    public ANTProductAssemble_ViewAssemble_AssembleDetailViewbySN()
    {
        amd = new TAssembleDetail();
        amds = new TAssembleDetails();
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        string productSN = this.TextBox1.Text.Trim();
        this.GridView1.DataSource = amd.GetTAssembleDetailbySN(productSN);
        this.GridView1.DataBind();
        this.GridView2.DataSource = amds.GetTAssembleDetailsbySN(productSN);
        this.GridView2.DataBind();
    }
}
